package svc

import (
	"al/alrpc/alrpcclient"
	"al/api/internal/config"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config config.Config
	AlRpc  alrpcclient.Alrpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config: c,
		AlRpc:  alrpcclient.NewAlrpc(zrpc.MustNewClient(c.AlRpc)),
	}
}
